
<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL,
    
)); 
?>
<fieldset>
 
    <legend>Category</legend>
    <?php 
        echo $form->textFieldControlGroup($model, 'name');
    ?>
    <?php 
        echo $form->dropDownListControlGroup($model, 'status',array(0 =>'disable',1 => 'enable',))
    ?>
    
    <?php 
        echo $form->dropDownListControlGroup($model, 'parent',  getlistCategory(null));
    ?>
</fieldset>
<?php 
echo TbHtml::formActions(array(
    TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)),
    TbHtml::resetButton('Reset'),
)); 
?>
<?php $this->endWidget(); ?>